import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import KxPlanRealPeopleBarChart from "./index";

const meta = {
  title:
    "柱状图/可信施工人数计划实际施工人员现场施工人员KxPlanRealPeopleBarChart",
  component: KxPlanRealPeopleBarChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "466px", width: "545px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof KxPlanRealPeopleBarChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "马銮湾保障房地铁社区二期A01~03地块",
        planAmount: 49,
        amount: 70,
      },
      {
        name: "马銮湾保障房地铁社区二期A04~07地块",
        planAmount: 210,
        amount: 49,
      },
      { name: "保障性住房龙泉公寓一期", planAmount: 180, amount: 60 },
      { name: "洪茂居住区一期", planAmount: 150, amount: 80 },
      { name: "东园保障性住房", planAmount: 200, amount: 40 },
    ],
  },
};
